import { http } from "@/utils/request";
import { type ReqGalleryList, type ResGalleryList } from "./types/homeType";

// 灵感画廊列表
export function getGalleryList(data: ReqGalleryList, query?: ReqPage | null) {
  return http.post<ResGalleryList>(
    "/gallery/galleryList",
    { ...data },
    { pageNum: 1, pageSize: 20, ...query },
    undefined,
    { requireAuth: false },
  );
}
